package com.edu.system.service.impl;

import java.util.List;
import com.edu.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.edu.system.mapper.TExamMissMapper;
import com.edu.system.domain.TExamMiss;
import com.edu.system.service.ITExamMissService;

/**
 * 缺考记录Service业务层处理
 * 
 * @author xxxx
 * @date 2024-01-11
 */
@Service
public class TExamMissServiceImpl implements ITExamMissService 
{
    @Autowired
    private TExamMissMapper tExamMissMapper;

    /**
     * 查询缺考记录
     * 
     * @param id 缺考记录主键
     * @return 缺考记录
     */
    @Override
    public TExamMiss selectTExamMissById(Long id)
    {
        return tExamMissMapper.selectTExamMissById(id);
    }

    /**
     * 查询缺考记录列表
     * 
     * @param tExamMiss 缺考记录
     * @return 缺考记录
     */
    @Override
    public List<TExamMiss> selectTExamMissList(TExamMiss tExamMiss)
    {
        return tExamMissMapper.selectTExamMissList(tExamMiss);
    }

    /**
     * 新增缺考记录
     * 
     * @param tExamMiss 缺考记录
     * @return 结果
     */
    @Override
    public int insertTExamMiss(TExamMiss tExamMiss)
    {
        tExamMiss.setCreateTime(DateUtils.getNowDate());
        return tExamMissMapper.insertTExamMiss(tExamMiss);
    }

    /**
     * 修改缺考记录
     * 
     * @param tExamMiss 缺考记录
     * @return 结果
     */
    @Override
    public int updateTExamMiss(TExamMiss tExamMiss)
    {
        return tExamMissMapper.updateTExamMiss(tExamMiss);
    }

    /**
     * 批量删除缺考记录
     * 
     * @param ids 需要删除的缺考记录主键
     * @return 结果
     */
    @Override
    public int deleteTExamMissByIds(Long[] ids)
    {
        return tExamMissMapper.deleteTExamMissByIds(ids);
    }

    /**
     * 删除缺考记录信息
     * 
     * @param id 缺考记录主键
     * @return 结果
     */
    @Override
    public int deleteTExamMissById(Long id)
    {
        return tExamMissMapper.deleteTExamMissById(id);
    }
}
